package com.valuegroup.smarttodo.data.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;

import java.io.Serializable;
import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 习惯培养清单
 */
@Entity
public class HabitOrder implements Serializable {
    private static final long serialVersionUID = 2210770626359948610L;
    @Id(autoincrement = true)
    private Long id;
    private String title;

    // 开始时段
    private Date startTime;
    // 结束时段
    private Date endTime;

    // 开启提醒
    private Boolean openRemind;

    // 重复间隔（开始至结束时段内，提醒间隔）
    private Integer remindInterval;

    private Integer sort;
    @NotNull
    private Date createdDt;
    @NotNull
    private Date updatedDt;
    @NotNull
    private Integer status;
    @Generated(hash = 1210426760)
    public HabitOrder(Long id, String title, Date startTime, Date endTime,
            Boolean openRemind, Integer remindInterval, Integer sort,
            @NotNull Date createdDt, @NotNull Date updatedDt,
            @NotNull Integer status) {
        this.id = id;
        this.title = title;
        this.startTime = startTime;
        this.endTime = endTime;
        this.openRemind = openRemind;
        this.remindInterval = remindInterval;
        this.sort = sort;
        this.createdDt = createdDt;
        this.updatedDt = updatedDt;
        this.status = status;
    }
    @Generated(hash = 500533119)
    public HabitOrder() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getTitle() {
        return this.title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public Date getStartTime() {
        return this.startTime;
    }
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    public Date getEndTime() {
        return this.endTime;
    }
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
    public Boolean getOpenRemind() {
        return this.openRemind;
    }
    public void setOpenRemind(Boolean openRemind) {
        this.openRemind = openRemind;
    }
    public Integer getRemindInterval() {
        return this.remindInterval;
    }
    public void setRemindInterval(Integer remindInterval) {
        this.remindInterval = remindInterval;
    }
    public Integer getSort() {
        return this.sort;
    }
    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public Date getCreatedDt() {
        return this.createdDt;
    }
    public void setCreatedDt(Date createdDt) {
        this.createdDt = createdDt;
    }
    public Date getUpdatedDt() {
        return this.updatedDt;
    }
    public void setUpdatedDt(Date updatedDt) {
        this.updatedDt = updatedDt;
    }
    public Integer getStatus() {
        return this.status;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }

}
